{load header}
<!--/H-->

    <!-- 内容区 -->
    <div id="main-content">
        <div id="top-alert" class="fixed alert alert-error" style="display: none;">
            <button class="close fixed" style="margin-top: 4px;">&times;</button>
            <div class="alert-content">这是内容</div>
        </div>
        <div id="main" class="main">
        <!-- nav --><!-- nav -->
            
	<div class="main-title cf">
		<h2>{$plat['plat_name']}</h2>
	</div>
	<div class="tab-wrap">
		<ul class="tab-nav nav">
			<li data-tab="tab1" class="current"><a href="javascript:void(0);">平台账户</a></li>
			<li data-tab="tab2" ><a href="javascript:void(0);">平台logo</a></li>
			<li data-tab="tab3" ><a href="javascript:void(0);">基本信息</a></li>
		</ul>
		<div class="tab-content">
	<form action="" method="post" class="form-horizontal">
			<div id="tab1" class="tab-pane in tab1">
				<div class="form-item cf">
					<label class="item-label">登录账户<span class="check-tips"></span></label>
					<div class="controls name_name">
                                            <input type="hidden" name="id" value="{$plat['id']}">
                                            <input type="text" class="text input-large" name="username" value="{$plat['username']}">
					</div>
				</div>
				<div class="form-item cf">
					<label class="item-label">登录密码<span class="check-tips"></span></label>
					<div class="controls">
                                            <input type="text"class="text input-large" name="password" placeholder="登录密码" value="">
					</div>
				</div>
                            <div class="form-item cf">
                                    <label class="item-label">公司名称<span class="check-tips"></span></label>
                                    <div class="controls">
                                        <input type="text" class="text input-large" name="plat_name" placeholder="公司名称" value="{$plat['plat_name']}">
                                    </div>
                            </div>
                            
                            <div class="form-item">
                                <label class="item-label">是否锁定<span class="check-tips">（锁定后，账户将无法登陆）</span></label>
                                <div class="controls">
                                    <label class="radio"><input {if $plat['is_lock']} checked {/if} type="radio" name="is_lock" value="1" />不锁定</label>
                                    <label class="radio"><input {if $plat['is_lock'] == 0} checked {/if} type="radio" name="is_lock" value="0" />锁定</label>
                                </div>
                            </div>
                        </div>
		<div id="tab2" class="tab-pane tab2">
				
				<div class="form-item">
					<label class="item-label">平台LOGO<span class="check-tips">（87*87，在首页或列表页显示）</span></label>
					<div class="controls">
						<input type="file" id="upload_picture_cover_id">
                                                <input type="hidden" name="plat_logo" id="cover_id_cover_id" value="{$plat['plat_logo']}"/>
						<div class="upload-img-box"><!--{if $plat['plat_logo']}--><div class="upload-pre-item"><img src="{$plat['plat_logo']}"/></div><!--{/if}--></div>
					</div>
					<script type="text/javascript" src="{eval echo base_url()}static/uploadify/jquery.uploadify.min.js"></script>
					<script type="text/javascript">
					//上传图片
					/* 初始化上传插件 */
					$("#upload_picture_cover_id").uploadify({
						"height"          : 30,
						"swf"             : "{eval echo base_url()}static/uploadify/uploadify.swf",
						"fileObjName"     : "picture",
						"buttonText"      : "上传图片",
						"uploader"        : "http://static.tan66.com/upload/picture.html",
						//'formData' : {"action": "upload", "sid" : ""},
						"width"           : 120,
						'removeTimeout'	  : 1,
						'fileTypeExts'	  : '*.jpg; *.png; *.gif;',
						"onUploadSuccess" : uploadPicturecover_id,
						'onFallback' : function() {
							alert('未检测到兼容版本的Flash.');
						}
					});
					function uploadPicturecover_id(file, data){
						var data = $.parseJSON(data);
						var src = '';
						if(data.status){
							$("#cover_id_cover_id").val(data.id);
							src = data.url || '' + data.path
							$("#cover_id_cover_id").parent().find('.upload-img-box').html(
								'<div class="upload-pre-item"><img src="' + src + '"/></div>'
							);
							
						} else {
							updateAlert(data.info);
							setTimeout(function(){
								$('#top-alert').find('button').click();
								//$(that).removeClass('disabled').prop('disabled',false);
							},1500);
						}
					}
					</script>
				</div>
		</div>
		
		
		<div id="tab3" class="tab-pane tab3">
                    <div class="form-item cf">
                        <label class="item-label">联系人<span class="check-tips"></span></label>
                        <div class="controls">
                            <input type="text" id="" class="text input-large" name="contacter"  value="{$plat['contacter']}">
                        </div>
                    </div>
                    <div class="form-item cf">
                        <label class="item-label">联系人电话<span class="check-tips"></span></label>
                        <div class="controls">
                            <input type="text" id="" class="text input-large" name="tell_mobile" value="{$plat['tell_mobile']}">
                        </div>
                    </div>
                    <div class="form-item cf">
                        <label class="item-label">公司固定电话<span class="check-tips"></span></label>
                        <div class="controls">
                            <input type="text" id="" class="text input-large" name="tell_phone" value="{$plat['tell_phone']}">
                        </div>
                    </div>
                    <div class="form-item cf">
                        <label class="item-label">公司地址<span class="check-tips"></span></label>
                        <div class="controls">
                            <input type="text" id="" class="text input-large" name="address" value="{$plat['address']}">
                        </div>
                    </div>
		</div>
		<div class="form-item cf">
			<button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
			<button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
		</div>
	</form>
	</div>
</div>
<!--F-->{load footer}
<script type="text/javascript">
showTab();
</script>